﻿#region << 版 本 注 释 >>
/*----------------------------------------------------------------
* 项目名称 ：APP.Trading.Entity.Entity
* 项目描述 ：
* 类 名 称 ：ProductEntity
* 类 描 述 ：
* 所在的域 ：DESKTOP-07DQ4D0
* 命名空间 ：APP.Trading.Entity.Entity
* 机器名称 ：DESKTOP-07DQ4D0 
* CLR 版本 ：4.0.30319.42000
* 作    者 ：Me.笨先生 (66623978)
* 创建时间 ：2018/2/7 9:13:38
* 更新时间 ：2018/2/7 9:13:38
* 版 本 号 ：v1.0.0.0
*******************************************************************
* Copyright @ admin 2018. All rights reserved.
*******************************************************************
//----------------------------------------------------------------*/
#endregion

using System;

using APP.CommonLib.Entity;
using APP.Repository.Entity;

namespace APP.Trading.Entity.Entity
{
    [Table("TC_Product")]
    public class ProductEntity : TableEntity
    {
        /// <summary>
        /// 父类别
        /// </summary>
        public long ProductTypeParentID { get; set; }

        /// <summary>
        /// 类别
        /// </summary>
        public long ProductTypeId { get; set; }

        /// <summary>
        /// 类型组
        /// </summary>
        public TypeGroup TypeGroup { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 活动类型
        /// </summary>
        public int ActivityType { get; set; }

        /// <summary>
        /// 收益
        /// </summary>
        public decimal IncomeRate { get; set; }

        /// <summary>
        /// 万分收益
        /// </summary>
        public decimal IncomeRateCopies { get; set; }

        /// <summary>
        /// 总份额
        /// </summary>
        public decimal TotalShares { get; set; }

        /// <summary>
        /// 剩余份额
        /// </summary>
        public decimal RemainingShares { get; set; }

        /// <summary>
        /// 起购金额
        /// </summary>
        public decimal StartBuyPrice { get; set; }

        /// <summary>
        /// 倍数金额
        /// </summary>
        public decimal MultiplePrice { get; set; }

        /// <summary>
        /// 赎回倍数金额
        /// </summary>
        public decimal RedeemMultiplePrice { get; set; }

        /// <summary>
        /// 购买上限
        /// </summary>
        public decimal MaxBuyPrice { get; set; }

        /// <summary>
        /// 销售状态
        /// </summary>
        public int SalesStatus { get; set; }

        /// <summary>
        /// 是否有时间限制
        /// </summary>
        public int IsTimeLimit { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 投资期限
        /// </summary>
        public int InvestmentTime { get; set; }

        /// <summary>
        /// 是否计算收益
        /// </summary>
        public int IsComputeInterest { get; set; }

        /// <summary>
        /// 是否使用加息劵
        /// </summary>
        public int IsPlusInCome { get; set; }

        /// <summary>
        /// 是否可以使用现金劵
        /// </summary>
        public int IsCash { get; set; }

        /// <summary>
        /// 购买人次
        /// </summary>
        public int BuyCount { get; set; }

        /// <summary>
        /// 角标图片
        /// </summary>
        public string CornerMarkUrl { get; set; }

        /// <summary>
        /// 结束角标图片
        /// </summary>
        public string OverMarkUrl { get; set; }

        /// <summary>
        /// 是否复投
        /// </summary>

        public int IsRecast { set; get; }

        /// <summary>
        /// 复投率
        /// </summary>
        public decimal RecastIncomeRate { set; get; }

        /// <summary>
        /// 复投次数
        /// </summary>
        public int RecastCount { set; get; }
    }

    /// <summary>
    /// 产品类别
    /// </summary>
    public enum TypeGroup
    {
        /// <summary>
        /// 正常 产品
        /// </summary>
        Normal = 1,
        /// <summary>
        /// 活动产品
        /// </summary>
        Activity = 2,

        /// <summary>
        /// 体验金产品
        /// </summary>
        Experience = 3
    }
}